package com.maywide.jdp.system.bean;

import java.util.List;
import java.util.Map;

import com.maywide.jdp.core.bean.LockedBean;
import com.maywide.jdp.system.vo.ButtonTree;
import com.maywide.jdp.system.vo.ModuleButtonTree;
import com.maywide.jdp.system.vo.Task;

/**
 * 按钮管理Bean接口
 * 
 * @author luoyang
 * @version 1.0
 * @since JDK1.6
 */
public interface ButtonBean extends LockedBean {

	/**
	 * 获得某用户对某业务模块可以访问的按钮列表
	 * @param busnessCode 业务模块代码
	 * @param operatorID 用户ID
	 * @return 可以访问的按钮列表
	 */
	List<Task> findTasks(String busnessCode, String operatorID) throws Exception;

	/**
	 * 获得角色对应的按钮
	 * @param roleID 角色ID
	 * @return
	 */
	public List<ButtonTree> findByRoleID(String roleID) throws Exception;
	
	public List<ModuleButtonTree> treeGrid(Map<String, Object> conditions,Map<String, Object> parameters) throws Exception;

	public void move(String id, String parentID) throws Exception;
	
	public void move(List<String> ids, String parentID) throws Exception;
}
